package com.xtgg.more;

import com.umeng.analytics.MobclickAgent;
import com.xtgg.R;
import com.xtgg.device.TextInputActivity;
import com.xtgg.manager.BaseActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class SettingsActivity extends BaseActivity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_settings);

		((TextView) findViewById(R.id.center)).setText("系统设置");
		MobclickAgent.onEvent(this, ((TextView) findViewById(R.id.center))
				.getText().toString());

		findViewById(R.id.left).setOnClickListener(this);
		findViewById(R.id.action0).setOnClickListener(this);
		findViewById(R.id.action1).setOnClickListener(this);
	}

	@Override
	public void onClick(View arg0) {
		switch (arg0.getId()) {
		case R.id.left:
			finish();
			break;

		case R.id.action0:
			startActivity(new Intent(this, ModifyPwdActivity.class));
			break;

		case R.id.action1:
			startActivity(new Intent(this, AboutActivity.class));
			break;
		}
	}
}
